<template>
  <div ref="chart" style="width:600px; height:400px;"></div>
</template>

<script>
import * as echarts from 'echarts'

export default {
  mounted() {
    const chart = echarts.init(this.$refs.chart)
    chart.setOption({
      xAxis: { type: 'value' },
      yAxis: { type: 'value' },
      series: [{ type: 'line', data: [[10, 5], [20, 15], [30, 8]] }]
    })
  }
}
</script>
